home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b4.d64
/
example4.2
< prev
next >
Wrap
Text File
|
2007-02-28
|
273b
|
14 lines
0010 SUM:=0
0020 FOR CUST:=1 TO 5 DO
0030 READ TRANS,BAL
0040 CHARGE:=TRANS*.2
0050 IF BAL>200 THEN
0060 CHARGE:=0
0070 ELSE
0080 IF BAL>100 THEN CHARGE:=CHARGE/2
0090 ENDIF
0100 SUM:=SUM+CHARGE
0110 ENDFOR CUST
0120 PRINT SUM
0130 DATA 91,160,72,490,98,17,64,101,86,150